import { API } from './api'
import { SYSTEM } from './apiMaps'

export default {
	// 登录
	login (params, callback) {
		return API.post(SYSTEM.LOGIN.LOGIN, params, callback)
	},
	// 注销
	logout (params, callback) {
		return API.post(SYSTEM.LOGIN.LOGOUT, params, callback)
	},
	// 获取用户功能权限列表
	getMenuList (params, callback) {
		return API.get(SYSTEM.LOGIN.MENULIST, params, callback)
	},
	// 获取用户功能权限列表 （含父菜单）
	getAllMenuList (params, callback) {
		return API.get(SYSTEM.LOGIN.ALLMENULIST, params, callback)
	},
	// 获取省市县三级联动列表
	getDistrictList (params, callback) {
		return API.get(SYSTEM.DISTRICT.DISTRICTLIST, params, callback)
	},
	// 获取可用管理员列表
	getAdminList (params, callback) {
		return API.get(SYSTEM.ADMIN.ADMINLIST, params, callback)
	},
	// 获取所有管理员列表
	getAllAdminListPage (params, callback) {
		return API.get(SYSTEM.ADMIN.ADMINALLLISTPAGE, params, callback)
	},	
	// 管理员重置密码
	resetAdminPassword (params, callback) {
		return API.post(SYSTEM.ADMIN.RESETADMINPASSWORD, params, callback)
	},
	// 删除管理员
	deleteAdmin (params, callback) {
		return API.post(SYSTEM.ADMIN.DELETEADMIN, params, callback)
	},
	// 管理员启用
	onAdmin (params, callback) {
		return API.post(SYSTEM.ADMIN.ONADMIN, params, callback)
	},
	// 管理员停用
	offAdmin (params, callback) {
		return API.post(SYSTEM.ADMIN.OFFADMIN, params, callback)
	},
	// 保存管理员
	saveAdmin (params, callback) {
		return API.post(SYSTEM.ADMIN.SAVEADMIN, params, callback)
	},
	// 修改密码
	updatePwd (params, callback) {
		return API.post(SYSTEM.ADMIN.UPDATEPWD, params, callback)
	},
	// 获取学段列表
	getPhaseList (params, callback) {
		return API.get(SYSTEM.PHASE.PHASELIST, params, callback)
	},
	// 获取学段列表(分页)
	getPhaseListPage (params, callback) {
		return API.get(SYSTEM.PHASE.PHASELISTPAGE, params, callback)
	},
	// 保存学段
	savePhase (params, callback) {
		return API.post(SYSTEM.PHASE.SAVEPHASE, params, callback)
	},
	// 删除学段
	deletePhase (params, callback) {
		return API.post(SYSTEM.PHASE.DELETEPHASE, params, callback)
	},
	// 获取学科列表
	getSubjectList (params, callback) {
		return API.get(SYSTEM.SUBJECT.SUBJECTLIST, params, callback)
	},
	// 获取学科列表(分页)
	getSubjectListPage (params, callback) {
		return API.get(SYSTEM.SUBJECT.SUBJECTLISTPAGE, params, callback)
	},
	// 保存学科
	saveSubject (params, callback) {
		return API.post(SYSTEM.SUBJECT.SAVESUBJECT, params, callback)
	},
	// 删除学科
	deleteSubject (params, callback) {
		return API.post(SYSTEM.SUBJECT.DELETESUBJECT, params, callback)
	},
	// 获取年级列表
	getGradeList (params, callback) {
		return API.get(SYSTEM.GRADE.GRADELIST, params, callback)
	},
	// 获取年级列表(分页)
	getGradeListPage (params, callback) {
		return API.get(SYSTEM.GRADE.GRADELISTPAGE, params, callback)
	},
	// 保存年级
	saveGrade (params, callback) {
		return API.post(SYSTEM.GRADE.SAVEGRADE, params, callback)
	},
	// 删除年级
	deleteGrade (params, callback) {
		return API.post(SYSTEM.GRADE.DELETEGRADE, params, callback)
	},
	// 获取可用产品列表
	getProductList (params, callback) {
		return API.get(SYSTEM.PRODUCT.PRODUCTLIST, params, callback)
	},
	// 获取学校可添加产品列表
	getSelectProductList (params, callback) {
		return API.get(SYSTEM.PRODUCT.SELECTPRODUCTLIST, params, callback)
	},
	// 获取所有产品列表
	getALLProductList (params, callback) {
		return API.get(SYSTEM.PRODUCT.ALLPRODUCTLIST, params, callback)
	},
	// 获取所有产品列表(分页)
	getALLProductListPage (params, callback) {
		return API.get(SYSTEM.PRODUCT.ALLPRODUCTLISTPAGE, params, callback)
	},
	// 保存产品
	saveProduct (params, callback) {
		return API.post(SYSTEM.PRODUCT.SAVEPRODUCT, params, callback)
	},
	// 删除产品
	deleteProduct (params, callback) {
		return API.post(SYSTEM.PRODUCT.DELETEPRODUCT, params, callback)
	},
	// 启用产品
	onProduct (params, callback) {
		return API.post(SYSTEM.PRODUCT.ONPRODUCT, params, callback)
	},
	// 停用产品
	offProduct (params, callback) {
		return API.post(SYSTEM.PRODUCT.OFFPRODUCT, params, callback)
	},
	// 获取可用角色列表
	getRoleList (params, callback) {
		return API.get(SYSTEM.ROLE.ROLELIST, params, callback)
	},
	// 获取所有角色列表
	getALLRoleList (params, callback) {
		return API.get(SYSTEM.ROLE.ALLROLELIST, params, callback)
	},
	// 获取所有角色列表(分页)
	getALLRoleListPage (params, callback) {
		return API.get(SYSTEM.ROLE.ALLROLELISTPAGE, params, callback)
	},
	// 保存角色
	saveRole (params, callback) {
		return API.post(SYSTEM.ROLE.SAVEROLE, params, callback)
	},
	// 删除角色
	deleteRole (params, callback) {
		return API.post(SYSTEM.ROLE.DELETEROLE, params, callback)
	},
	// 启用角色
	onRole (params, callback) {
		return API.post(SYSTEM.ROLE.ONROLE, params, callback)
	},
	// 停用角色
	offRole (params, callback) {
		return API.post(SYSTEM.ROLE.OFFROLE, params, callback)
	},
	// 保存角色权限
	saveRoleMenu (params, callback) {
		return API.post(SYSTEM.ROLE.SAVEROLEMENU, params, callback)
	},
	// 获得菜单树状列表
	getMenusByProductLevel (params, callback) {
		return API.get(SYSTEM.MENU.MENUMAP, params, callback)
	},
	// 获得学校产品菜单树状列表
	getSchoolMenus (params, callback) {
		return API.get(SYSTEM.MENU.SCHOOLMENUMAP, params, callback)
	},
	// 获得学校列表
	getSchoolList (params, callback) {
		return API.get(SYSTEM.SCHOOL.SCHOOLLIST, params, callback)
	},
	// 获得所有学校列表（分页）
	getAllSchoolListPage (params, callback) {
		return API.get(SYSTEM.SCHOOL.ALLSCHOOLLISTPAGE, params, callback)
	},
	// 获得学校信息
	getSchoolInfo (params, callback) {
		return API.get(SYSTEM.SCHOOL.SCHOOLINFO, params, callback)
	},
	// 获得学校学段信息
	getSchoolPhaseList (params, callback) {
		return API.get(SYSTEM.SCHOOL.SCHOOLPHASELIST, params, callback)
	},
	// 保存学校
	saveSchool (params, callback) {
		return API.post(SYSTEM.SCHOOL.SAVESCHOOL, params, callback)
	},
	// 删除学校
	deleteSchool (params, callback) {
		return API.post(SYSTEM.SCHOOL.DELETESCHOOL, params, callback)
	},
	// 启用学校
	onSchool (params, callback) {
		return API.post(SYSTEM.SCHOOL.ONSCHOOL, params, callback)
	},
	// 停用学校
	offSchool (params, callback) {
		return API.post(SYSTEM.SCHOOL.OFFSCHOOL, params, callback)
	},
	// 获得可用学校产品列表
	getSchoolProductList (params, callback) {
		return API.get(SYSTEM.SCHOOLPRODUCT.SCHOOLPRODUCTLIST, params, callback)
	},
	// 获得所有学校产品列表（分页）
	getAllSchoolProductListPage (params, callback) {
		return API.get(SYSTEM.SCHOOLPRODUCT.ALLSCHOOLPRODUCTLISTPAGE, params, callback)
	},
	// 保存学校产品
	saveSchoolProduct (params, callback) {
		return API.post(SYSTEM.SCHOOLPRODUCT.SAVESCHOOLPRODUCT, params, callback)
	},
	// 获得班级列表
	getClassesList (params, callback) {
		return API.get(SYSTEM.CLASSES.CLASSESLIST, params, callback)
	},
	// 获得所有班级列表（分页）
	getAllClassesListPage (params, callback) {
		return API.get(SYSTEM.CLASSES.ALLCLASSESLISTPAGE, params, callback)
	},
	// 获得班级信息
	getClassesInfo (params, callback) {
		return API.get(SYSTEM.CLASSES.CLASSESINFO, params, callback)
	},
	// 保存班级
	saveClasses (params, callback) {
		return API.post(SYSTEM.CLASSES.SAVECLASSES, params, callback)
	},
	// 删除班级
	deleteClasses (params, callback) {
		return API.post(SYSTEM.CLASSES.DELETECLASSES, params, callback)
	},
	// 更新班级教师
	saveClassesTeacher (params, callback) {
		return API.post(SYSTEM.CLASSES.SAVECLASSESTEACHER, params, callback)
	},
	// 获取班级学科列表
	getClassesSubjectList (params, callback) {
		return API.get(SYSTEM.CLASSES.CLASSESSUBJECTLIST, params, callback)
	},
	// 获取班级学科教师可选择列表
	getUnselectedTeacherList (params, callback) {
		return API.get(SYSTEM.CLASSES.UNSELECTTEACHERLIST, params, callback)
	},
	// 获取班级学科已任教教师列表
	getSelectedTeacherList (params, callback) {
		return API.get(SYSTEM.CLASSES.SELECTTEACHERLIST, params, callback)
	},
	// 保存班级学科教师
	saveSubjectTeacher (params, callback) {
		return API.post(SYSTEM.CLASSES.SAVESUBJECTTEACHER, params, callback)
	},
	// 批量导入班级
	importClasses (params, callback) {
		return API.post(SYSTEM.CLASSES.IMPORTCLASSES, params, callback)
	},
	// 获得学校教师列表(分页)
	getSchoolTeacherListPage (params, callback) {
		return API.get(SYSTEM.TEACHER.ALLSCHOOLTEACHERLISTPAGE, params, callback)
	},
	// 获得教师列表(分页)
	getTeacherListPage (params, callback) {
		return API.get(SYSTEM.TEACHER.ALLTEACHERLISTPAGE, params, callback)
	},
	// 获得教师列表(分页)
	getSchoolTeacherListBySubjectId (params, callback) {
		return API.get(SYSTEM.TEACHER.SCHOOLTEACHERLIST, params, callback)
	},
	// 保存教师
	saveTeacher (params, callback) {
		return API.post(SYSTEM.TEACHER.SAVETEACHER, params, callback)
	},
	// 删除教师
	deleteTeacher (params, callback) {
		return API.post(SYSTEM.TEACHER.DELETETEACHER, params, callback)
	},
	// 教师重置密码
	resetTeacher (params, callback) {
		return API.post(SYSTEM.TEACHER.RESETTEACHER, params, callback)
	},
	// 教师移出校
	outSchoolTeacher  (params, callback) {
		return API.post(SYSTEM.TEACHER.OUTSCHOOL, params, callback)
	},
	// 教师转校
	moveSchoolTeacher  (params, callback) {
		return API.post(SYSTEM.TEACHER.MOVESCHOOL, params, callback)
	},
	// 停用教师
	offTeacher  (params, callback) {
		return API.post(SYSTEM.TEACHER.OFFTEACHER, params, callback)
	},
	// 启用教师
	onTeacher  (params, callback) {
		return API.post(SYSTEM.TEACHER.ONTEACHER, params, callback)
	},
	// 批量导入教师
	importTeacher (params, callback) {
		return API.post(SYSTEM.TEACHER.IMPORTTEACHER, params, callback)
	},
	// 获取可用学校角色列表
	getSchoolRoleList (params, callback) {
		return API.get(SYSTEM.SCHOOLROLE.SCHOOLROLELIST, params, callback)
	},
	// 获取所有学校角色列表（分页）
	getAllSchoolRoleListPage (params, callback) {
		return API.get(SYSTEM.SCHOOLROLE.ALLSCHOOLROLELISTPAGE, params, callback)
	},
	// 保存学校角色
	saveSchoolRole (params, callback) {
		return API.post(SYSTEM.SCHOOLROLE.SAVESCHOOLROLE, params, callback)
	},
	// 删除学校角色
	deleteSchoolRole (params, callback) {
		return API.post(SYSTEM.SCHOOLROLE.DELETESCHOOLROLE, params, callback)
	},
	// 学校角色启用
	onSchoolRole (params, callback) {
		return API.post(SYSTEM.SCHOOLROLE.ONSCHOOLROLE, params, callback)
	},
	// 学校角色停用
	offSchoolRole (params, callback) {
		return API.post(SYSTEM.SCHOOLROLE.OFFSCHOOLROLE, params, callback)
	},
	// 学校角色权限保存
	saveSchoolRoleMenu (params, callback) {
		return API.post(SYSTEM.SCHOOLROLE.SAVESCHOOLROLEMENU, params, callback)
	},
	// 获得学校学生列表(分页)
	getSchoolStudentListPage (params, callback) {
		return API.get(SYSTEM.STUDENT.ALLSCHOOLSTUDENTLISTPAGE, params, callback)
	},
	// 获得学生列表(分页)
	getStudentListPage (params, callback) {
		return API.get(SYSTEM.STUDENT.ALLSTUDENTLISTPAGE, params, callback)
	},
	// 保存学生
	saveStudent (params, callback) {
		return API.post(SYSTEM.STUDENT.SAVESTUDENT, params, callback)
	},
	// 删除学生
	deleteStudent (params, callback) {
		return API.post(SYSTEM.STUDENT.DELETESTUDENT, params, callback)
	},
	// 学生重置密码
	resetStudent (params, callback) {
		return API.post(SYSTEM.STUDENT.RESETSTUDENT, params, callback)
	},
	// 学生移出校
	outSchoolStudent  (params, callback) {
		return API.post(SYSTEM.STUDENT.OUTSCHOOL, params, callback)
	},
	// 转班
	moveStudent  (params, callback) {
		return API.post(SYSTEM.STUDENT.MOVESTUDENT, params, callback)
	},
	// 学生移出班
	outClasses  (params, callback) {
		return API.post(SYSTEM.STUDENT.OUTCLASS, params, callback)
	},
	// 停用学生
	offStudent  (params, callback) {
		return API.post(SYSTEM.STUDENT.OFFSTUDENT, params, callback)
	},
	// 启用学生
	onStudent  (params, callback) {
		return API.post(SYSTEM.STUDENT.ONSTUDENT, params, callback)
	},
	// 批量导入学生
	importStudent (params, callback) {
		return API.post(SYSTEM.STUDENT.IMPORTSTUDENT, params, callback)
	}
}
